
import request from '@/utils/request'

// 获取列表
export function ParkingSystemAll(params) {
    return request({
        url: '/parkingManagement/ParkingSystem/All',
        method: 'get',
        params
    })
}

//获取更新下来列表
export function OwnerByIdName() {
    return request({
        url: '/parkingManagement/ParkingSystem/OwnerByIdName',
        method: 'get',
    })
}


//获取用户列表
export function ParkingSpaceInfoById(id) {
    return request({
        url: '/parkingManagement/ParkingSystem/ParkingSpaceInfoById',
        method: 'get',
        params: { id: id }
    })
}


export function UpdateParkingSystemlById(id,ownerName,useStatus,buildingNumber) {
    return request({
        url: '/parkingManagement/ParkingSystem/UpdateParkingSystemlById',
        method: 'post',
        data: { id: id,ownerName:ownerName,useStatus:useStatus,buildingNumber:buildingNumber }
    })
}

export function insertParkingSystem(data) {
    return request({
        url: '/parkingManagement/ParkingSystem/insertParkingSystem',
        method: 'post',
        data: data
    })
}
export function DeleteParkingSystemlById(id) {
    return request({
        url: '/parkingManagement/ParkingSystem/DeleteParkingSystemlById',
        method: 'get',
        params: { id: id }
    })
}

export function DistinctUseStatus() {
    return request({
        url: '/parkingManagement/ParkingSystem/DistinctUseStatus',
        method: 'get'
    })
}

export function DistinctBuildingNumber() {
    return request({
        url: '/parkingManagement/ParkingSystem/DistinctBuildingNumber',
        method: 'get'
    })
}


export function exportUnit(){
    return request({
        url: '/parkingManagement/ParkingSystem/export',
        method: 'get',
        // responseType: 'blob',
    })
}


